def reverse(s):
    res = ''
    for x in s:
        res = x + res
    return res
    
class Solution:
    # @param {integer} x
    # @return {boolean}
    def isPalindrome(self, x):
        s1 = str(x)
        s2 = reverse(s1)
        if s1 == s2:
            return True
        return False
